import { createStore,combineReducers } from 'redux';
import userReducer from './reducer/user'
import state from './state'
import RouterReducer from './reducer/router'
const reducers = combineReducers({
  userReducer,
  state,
  RouterReducer
})


// 创建 Redux store 来存放应用的状态。
// API 是 { subscribe, dispatch, getState }。
export default createStore(reducers);